#include <stdio.h>
#include <stdlib.h>
#include "stack.h"



	int main()
{
	Datatype tmp;
	Datatype a[] = {1,3,5,6,7,2};
	stack_st *ptr = NULL;
	ptr = stack_create();
	for(int i = 0;i < (sizeof(a)/sizeof(*a));i++)
		stack_push(ptr,&a[i]);
	stack_display(ptr);
	stack_top_get(ptr,&tmp);
	printf("%d\n",tmp);
	while(stack_pop(ptr,&tmp) == 0)
	{
		printf("%d ",tmp);
	}
		printf("\n");
	stack_destroy(ptr);	
	exit(0);
}
